package cn.tedu.controller;

import cn.tedu.entity.Order;
import cn.tedu.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;
    @GetMapping("/create")
    private String create(Order order){
        orderService.create(order);
        return "创建订单成功";
    }
}
